package com.micro.shop.model;

import java.io.Serializable;

public class UserCollect implements Serializable {
    /**
     * 
     * 表 : bestfenxiao_user_collect
     * 对应字段 : collect_id
     */
    private Integer collectId;

    /**
     * 
     * 表 : bestfenxiao_user_collect
     * 对应字段 : user_id
     */
    private Integer userId;

    /**
     * 当type=1，这里值为商品id，type=2，此值为店铺id
     * 表 : bestfenxiao_user_collect
     * 对应字段 : dataid
     */
    private Integer dataid;

    /**
     * 
     * 表 : bestfenxiao_user_collect
     * 对应字段 : add_time
     */
    private Integer addTime;

    /**
     * 1:为商品；2:为店铺
     * 表 : bestfenxiao_user_collect
     * 对应字段 : type
     */
    private Integer type;

    /**
     * 是否被关注(0:不关注，1：关注)
     * 表 : bestfenxiao_user_collect
     * 对应字段 : is_attention
     */
    private Integer isAttention;

    /**
     * 
     * 表 : bestfenxiao_user_collect
     * 对应字段 : store_id
     */
    private Integer storeId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table bestfenxiao_user_collect
     *
     * @mbggenerated Sun Apr 22 10:00:05 CST 2018
     */
    private static final long serialVersionUID = 1L;

    /**
     * get method 
     *
     * @return bestfenxiao_user_collect.collect_id：
     */
    public Integer getCollectId() {
        return collectId;
    }

    /**
     * set method 
     *
     * @param collectId  
     */
    public void setCollectId(Integer collectId) {
        this.collectId = collectId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user_collect.user_id：
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * set method 
     *
     * @param userId  
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user_collect.dataid：当type=1，这里值为商品id，type=2，此值为店铺id
     */
    public Integer getDataid() {
        return dataid;
    }

    /**
     * set method 
     *
     * @param dataid  当type=1，这里值为商品id，type=2，此值为店铺id
     */
    public void setDataid(Integer dataid) {
        this.dataid = dataid;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user_collect.add_time：
     */
    public Integer getAddTime() {
        return addTime;
    }

    /**
     * set method 
     *
     * @param addTime  
     */
    public void setAddTime(Integer addTime) {
        this.addTime = addTime;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user_collect.type：1:为商品；2:为店铺
     */
    public Integer getType() {
        return type;
    }

    /**
     * set method 
     *
     * @param type  1:为商品；2:为店铺
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user_collect.is_attention：是否被关注(0:不关注，1：关注)
     */
    public Integer getIsAttention() {
        return isAttention;
    }

    /**
     * set method 
     *
     * @param isAttention  是否被关注(0:不关注，1：关注)
     */
    public void setIsAttention(Integer isAttention) {
        this.isAttention = isAttention;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_user_collect.store_id：
     */
    public Integer getStoreId() {
        return storeId;
    }

    /**
     * set method 
     *
     * @param storeId  
     */
    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    /**
     *
     * @param that
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserCollect other = (UserCollect) that;
        return (this.getCollectId() == null ? other.getCollectId() == null : this.getCollectId().equals(other.getCollectId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getDataid() == null ? other.getDataid() == null : this.getDataid().equals(other.getDataid()))
            && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getIsAttention() == null ? other.getIsAttention() == null : this.getIsAttention().equals(other.getIsAttention()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()));
    }

    /**
     *
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCollectId() == null) ? 0 : getCollectId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getDataid() == null) ? 0 : getDataid().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getIsAttention() == null) ? 0 : getIsAttention().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        return result;
    }
}